/*
 * To change this template, choose Tools | Templates and open the template in the editor.
 */
package parser.part.n3;

import java.util.HashMap;
import java.util.List;

/**
 *
 * @author Patronus
 */
public class ContainerAdapter {

    private HashMap<Object, String> ways = new HashMap<Object, String>();//result - next step
    private HashMap<String, WayTree> waysActions = new HashMap<String, WayTree>();//next step - action  
    private HashMap<String, Object> results;//results for each step
    /*
     * init:
     */
    /**
     * 
     */
    protected String defaultNext = "default";
    /**
     * 
     */
    protected String defaultParent = "parent";
    private boolean isNeedToSave = false;
    private boolean isFinalAction = false;
    List<ConditionContainer> tree;
    private String id;
    /*
     * Identification for this object
     */
    private Ruler rule;  /*
     * Some object for action
     */

    private String condition;/*condition string for action*/


    /**
     * @return the ways
     */
    public HashMap<Object, String> getWays() {
        return ways;
    }

    /**
     * @param ways the ways to set
     */
    public void setWays(HashMap<Object, String> ways) {
        this.ways = ways;
    }

    /**
     * @return the isNeedToSave
     */
    public boolean isIsNeedToSave() {
        return isNeedToSave;
    }

    /**
     * @param isNeedToSave the isNeedToSave to set
     */
    public void setIsNeedToSave(boolean isNeedToSave) {
        this.isNeedToSave = isNeedToSave;
    }

    /**
     * @return the isFinalAction
     */
    public boolean isIsFinalAction() {
        return isFinalAction;
    }

    /**
     * @param isFinalAction the isFinalAction to set
     */
    public void setIsFinalAction(boolean isFinalAction) {
        this.isFinalAction = isFinalAction;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the rule
     */
    public Ruler getRule() {
        return rule;
    }

    /**
     * @param rule the rule to set
     */
    public void setRule(Ruler rule) {
        this.rule = rule;
    }

    /**
     * @return the condition
     */
    public String getCondition() {
        return condition;
    }

    /**
     * @param condition the condition to set
     */
    public void setCondition(String condition) {
        this.condition = condition;
    }
}
